﻿@using NewRen.Models;
@using NewRen.Models.ViewModel;

@{
    Business business = ViewBag.Bussiness;
    ViewBag.Title = "商品管理";
    Layout = "~/Views/Shared/_Layout_Business.cshtml";
}
<script>
    var business_id=@business.ID;
    var SID="@ViewBag.SID";
    Load();
</script>

<div class="ucenter-left account-left-border">
    <div class="ucneter-l-head cf">
        <div class="ulhead-headicon">
            @if (business.Picture == null)
            {
                <img src="/Images/userphoto.png" width="50" height="50"
                     alt=@business.BusinessName style="border-radius:50%;" />
            }
            else
            {
                <img src="/Business/ShowPicture/@business.ID" width="50"
                     alt=@business.BusinessName height="50" style="border-radius:50%;" />
            }

        </div>
        <div class="ulhead-info">
            <p class="ulhead-info-uname">@business.BusinessName</p>

            <div class="ulhead-info-tool">
                <a class="ulhead-icon icon-lock ucenter-mail " href="/Business/PwdEdit/@business.ID" title="修改密码">
                    <div class="ucenter-mail-tip">修改密码</div>
                </a>
                <a href="/User/Edit/@business.ID"
                   class="ulhead-icon icon-setting ucenter-mail" title="修改商户信息"></a>
            </div>
        </div>
    </div>
    <div class="ucenter-l-list">
        <ul class="ullist-ul">
            <li id="uclick">
                <a href="/Business/Show/@business.ID">商户中心</a>
            </li>
            <li id="uclick1">
                <a href="/Business/Edit/@business.ID">商户设置</a>
            </li>
            <li id="uclick2" class="active">
                <a href="/Business/ProductManager/@business.ID">商户商品</a>
            </li>
        </ul>
    </div>
</div>
<div class="ucenter-right cf">
    <div class="ucenter-right-head">
        <button class="btn" onclick="location.href='/Business/AddProduct/@business.ID'">新增商品</button>
        <span class="ucenter-right-head-selected">

        </span>
    </div>
    <div class="tabGroup lstProduct">
    </div>
    <p class="loadMore">下拉加载更多</p>
</div>
